{extend name="index_layout"/}
{block name="main"}
<form class="layui-form" method="post">

    <div class="layui-form-item">
        <label class="layui-form-label">订单编号</label>
        <div class="layui-input-block">
            <input id="c-out_trade_no" lay-verify="required" class=" layui-input" name="row[out_trade_no]" type="text">
        </div>
    </div>
    <div class="layui-form-item">
        <label class="layui-form-label">用户ID</label>
        <div class="layui-input-block">
            <input id="c-member_id" lay-verify="" data-source="admin/member/index" class="selectpage layui-input" name="row[member_id]" type="text" value="">
        </div>
    </div>
    <div class="layui-form-item">
        <label class="layui-form-label">商品ID</label>
        <div class="layui-input-block">
            <input id="c-goods_id" lay-verify="" data-source="admin/goods/index" class="selectpage layui-input" name="row[goods_id]" type="text" value="">
        </div>
    </div>
    <div class="layui-form-item">
        <label class="layui-form-label">商品名称</label>
        <div class="layui-input-block">
            <input id="c-goods_name" lay-verify="required" class=" layui-input" name="row[goods_name]" type="text">
        </div>
    </div>
    <div class="layui-form-item">
        <label class="layui-form-label">图片</label>
        <div class="layui-input-block">
            <div class="layui-col-xs4">
                <input id="c-goods_image" lay-verify="required" class=" layui-input" size="50" name="row[goods_image]" type="text">
            </div>
            <button type="button" id="faupload-goods_image" class="layui-btn faupload" data-input-id="c-goods_image" data-mimetype="image/gif,image/jpeg,image/png,image/jpg,image/bmp,image/webp" data-multiple="false" data-preview-id="p-goods_image"><i class="layui-icon layui-icon-upload"></i> 上传</button><button type="button" id="fachoose-goods_image" class="layui-btn fachoose" data-input-id="c-goods_image" data-mimetype="image/*" data-multiple="false"><i class="iconfont icon-other"></i> 选择</button>
            <ul class="layui-row list-inline plupload-preview" id="p-goods_image"></ul>
        </div>
    </div>
    <div class="layui-form-item">
        <label class="layui-form-label">商品价格</label>
        <div class="layui-input-block">
            <input id="c-good_price" lay-verify="required" class=" layui-input" step="0.01" name="row[good_price]" type="number">
        </div>
    </div>
    <div class="layui-form-item">
        <label class="layui-form-label">手机号</label>
        <div class="layui-input-block">
            <input id="c-phone" lay-verify="required" class=" layui-input" name="row[phone]" type="text">
        </div>
    </div>
    <div class="layui-form-item">
        <label class="layui-form-label">真实姓名</label>
        <div class="layui-input-block">
            <input id="c-realname" lay-verify="required" class=" layui-input" name="row[realname]" type="text">
        </div>
    </div>
    <div class="layui-form-item">
        <label class="layui-form-label">收货地址</label>
        <div class="layui-input-block">
            <input id="c-address" lay-verify="required" class=" layui-input" name="row[address]" type="text">
        </div>
    </div>
    <div class="layui-form-item">
        <label class="layui-form-label">0：待支付。1:待发货。2:已发货。3交易完成。4:取消订单</label>
        <div class="layui-input-block">
            <input id="c-status" lay-verify="required" class=" layui-input" name="row[status]" type="number">
        </div>
    </div>
    <div class="layui-form-item">
        <label class="layui-form-label">支付时间</label>
        <div class="layui-input-block">
            <input id="c-pay_time" class="datetime layui-input" name="row[pay_time]" type="text" value="{:date('Y-m-d H:i:s')}">
        </div>
    </div>
    <div class="layui-form-item">
        <label class="layui-form-label">备注</label>
        <div class="layui-input-block">
            <input id="c-notes" class=" layui-input" name="row[notes]" type="text">
        </div>
    </div>
    <div class="layui-form-item">
        <label class="layui-form-label">transaction_id</label>
        <div class="layui-input-block">
            <input id="c-transaction_id" lay-verify="" data-source="admin/transaction/index" class="selectpage layui-input" name="row[transaction_id]" type="text" value="">
        </div>
    </div>
    <div class="layui-form-item">
        <label class="layui-form-label">快递名称</label>
        <div class="layui-input-block">
            <input id="c-express_name" class=" layui-input" name="row[express_name]" type="text">
        </div>
    </div>
    <div class="layui-form-item">
        <label class="layui-form-label">快递单号</label>
        <div class="layui-input-block">
            <input id="c-express_nums" class=" layui-input" name="row[express_nums]" type="text">
        </div>
    </div>
    <div class="layui-form-item layer-footer">
        <div class="layui-input-block">
            <button class="layui-btn" lay-submit="">立即提交</button>
            <button type="reset" class="layui-btn layui-btn-primary">重置</button>
        </div>
    </div>
</form>
{/block}
{block name="script"}
<script type="text/javascript">
layui.use('yznForm', function() {
    var yznForm = layui.yznForm;
    yznForm.bindevent($("form.layui-form"));
});
</script>
{/block}